package ooday02work;

public class Doctor extends Person{
    String title;
    Doctor(String name ,int age ,String address,String title){
        super(name, age, address);
        this.title = title;
    }
    void cut(){
        System.out.println(title+name+"在做手术");
    }
    void eat(){
        System.out.println(name+"在医院吃饭");
    }
    void sleep(){
        System.out.println(name+"在"+address+"睡觉");
    }
}
